function queryAngle(angles){

  var angle=parseInt(angles);
  if(angle==0){
    return "北"
  } else if(angle==90){
    return "东"
  } else if(angle==180){
    return "南"
  } else if(angle==270){
    return "西"
  }else if(angle>0 && angle<90){
    return "东北"
  }else if(angle>90 && angle<180){
    return "东南"
  }else if(angle>180 && angle<270){
    return "西南"
  }else if(angle>270){
    return "西北"
  }

}
//0绿色是跑的，1红色是异常的，2灰色是离线的,3蓝色是停止的，
function queryCarIcon(angles,flag){
  var angle=parseInt(angles);
  var icon_name="car_online0.fw";
  if(angle==0){
    if(flag==0){
      icon_name="car_online0.fw";
    }else if(flag==1){
      icon_name="car_online1_0.fw";
    }else if(flag==2){
      icon_name="car_online2_0.fw";
    }else if(flag==3){
      icon_name="car_online3_0.fw";
    }

  }else if(angle>0 && angle<45){
    if(flag==0){
      icon_name="car_online0_45.fw";
    }else if(flag==1){
      icon_name="car_online1_0_45.fw";
    }else if(flag==2){
      icon_name="car_online2_0_45.fw";
    }else if(flag==3){
      icon_name="car_online3_0_45.fw";
    }
  }else if(angle==45){
    if(flag==0){
      icon_name="car_online45.fw";
    }else if(flag==1){
      icon_name="car_online1_45.fw";
    }else if(flag==2){
      icon_name="car_online2_45.fw";
    }else if(flag==3){
      icon_name="car_online3_45.fw";
    }
  }else if(angle>45 && angle<90){
    if(flag==0){
      icon_name="car_online45_90.fw";
    }else if(flag==1){
      icon_name="car_online1_45_90.fw";
    }else if(flag==2){
      icon_name="car_online2_45_90.fw";
    }else if(flag==3){
      icon_name="car_online3_45_90.fw";
    }
  }else if(angle==90){
    if(flag==0){
      icon_name="car_online90.fw";
    }else if(flag==1){
      icon_name="car_online1_90.fw";
    }else if(flag==2){
      icon_name="car_online2_90.fw";
    }else if(flag==3){
      icon_name="car_online3_90.fw";
    }
  }else if(angle>90 && angle<135){
    if(flag==0){
      icon_name="car_online90_135.fw";
    }else if(flag==1){
      icon_name="car_online1_90_135.fw";
    }else if(flag==2){
      icon_name="car_online2_90_135.fw";
    }else if(flag==3){
      icon_name="car_online3_90_135.fw";
    }
  }else if(angle==135){
    if(flag==0){
      icon_name="car_online135.fw";
    }else if(flag==1){
      icon_name="car_online1_135.fw";
    }else if(flag==2){
      icon_name="car_online2_135.fw";
    }else if(flag==3){
      icon_name="car_online3_135.fw";
    }
  }else if(angle>135 && angle<180){
    if(flag==0){
      icon_name="car_online135_180.fw";
    }else if(flag==1){
      icon_name="car_online1_135_180.fw";
    }else if(flag==2){
      icon_name="car_online2_135_180.fw";
    }else if(flag==3){
      icon_name="car_online3_135_180.fw";
    }
  }else if(angle==180){
    if(flag==0){
      icon_name="car_online180.fw";
    }else if(flag==1){
      icon_name="car_online1_180.fw";
    }else if(flag==2){
      icon_name="car_online2_180.fw";
    }else if(flag==3){
      icon_name="car_online3_180.fw";
    }
  }else if(angle>180 && angle<225){
    if(flag==0){
      icon_name="car_online180_225.fw";
    }else if(flag==1){
      icon_name="car_online1_180_225.fw";
    }else if(flag==2){
      icon_name="car_online2_180_225.fw";
    }else if(flag==3){
      icon_name="car_online3_180_225.fw";
    }
  }else if(angle==225){
    if(flag==0){
      icon_name="car_online225.fw";
    }else if(flag==1){
      icon_name="car_online1_225.fw";
    }else if(flag==2){
      icon_name="car_online2_225.fw";
    }else if(flag==3){
      icon_name="car_online3_225.fw";
    }
  }else if(angle>225 && angle<270){
    if(flag==0){
      icon_name="car_online225_270.fw";
    }else if(flag==1){
      icon_name="car_online1_225_270.fw";
    }else if(flag==2){
      icon_name="car_online2_225_270.fw";
    }else if(flag==3){
      icon_name="car_online3_225_270.fw";
    }
  }else if(angle==270){
    if(flag==0){
      icon_name="car_online270.fw";
    }else if(flag==1){
      icon_name="car_online1_270.fw";
    }else if(flag==2){
      icon_name="car_online2_270.fw";
    }else if(flag==3){
      icon_name="car_online3_270";
    }
  }else if(angle>270 && angle<315){
    if(flag==0){
      icon_name="car_online270_315.fw";
    }else if(flag==1){
      icon_name="car_online1_270_315.fw";
    }else if(flag==2){
      icon_name="car_online2_270_315.fw";
    }else if(flag==3){
      icon_name="car_online3_270_315.fw";
    }
  }else if(angle==315){
    if(flag==0){
      icon_name="car_online315.fw";
    }else if(flag==1){
      icon_name="car_online1_315.fw";
    }else if(flag==2){
      icon_name="car_online2_315.fw";
    }else if(flag==3){
      icon_name="car_online3_315.fw";
    }
  }else if(angle>315 && angle<350){
    if(flag==0){
      icon_name="car_online315_350.fw";
    }else if(flag==1){
      icon_name="car_online1_315_350.fw";
    }else if(flag==2){
      icon_name="car_online2_315_350.fw";
    }else if(flag==3){
      icon_name="car_online3_315_350.fw";
    }
  }
  return icon_name+".png"
}